package com.study.aspect;

import org.aspectj.lang.annotation.*;

@Aspect
//@Component
public class MyAspect {
	@Pointcut("execution(* com.study.service.TestService.*(..))")
	public void pointCut() {}




	@Before("pointCut()")
	public void before(){
		System.out.println(" before ---------");
	}

	@After("pointCut()")
	public void after(){
		System.out.println(" after ---------");
	}

	@AfterReturning("pointCut()")
	public void afterReturn(){
		System.out.println(" return ---------");
	}
}
